import Http from '@/untis/requests'

const { axiosInstance: request } = Http

import type { LoginParams, IResponseObject } from './types/login.type'

import type { AxiosResponse } from 'axios'

// 登录
export const loginIn: (params: LoginParams) => Promise<AxiosResponse<IResponseObject>> = (
  params: LoginParams
) => {
  return request.post('/login', params)
}
